package com.java2404.micro.consumer.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.java2404.micro.common.entity.User;
import com.java2404.micro.consumer.mapper.UserMapper;
import com.java2404.micro.consumer.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Zeka
 * @title: UserServiceImpl
 * @projectName mall-system
 * @description: TODO
 * @date 2025/01/07  14:12
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {


    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserById(Integer userId) {
        // 通过用户 ID 查询用户信息
        return userMapper.selectById(userId);
    }
}
